package com.lychee.demo.domain.vo;

import com.lychee.common.core.annotation.Translation;
import com.lychee.common.core.constant.TransConstant;
import com.lychee.demo.domain.TestMoreDemo;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.lychee.common.excel.annotation.ExcelDictFormat;
import com.lychee.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;



/**
 * 测试表视图对象 test_more_demo
 *
 * @author DingHao
 * @date 2025-08-14
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TestMoreDemo.class)
public class TestMoreDemoVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 部门id
     */
    @ExcelProperty(value = "部门id")
    private Long deptId;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名")
    private String name;

    /**
     * 年龄
     */
    @ExcelProperty(value = "年龄")
    private Long age;

    /**
     * 性别
     */
    @ExcelProperty(value = "性别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_user_sex")
    private String sex;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private String picture;

    /**
     * 图片Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "picture")
    private String pictureUrl;
    /**
     * 介绍
     */
    @ExcelProperty(value = "介绍")
    private String introduction;


}
